#ifndef TEXTUREMANAGER_H
#define TEXTUREMANAGER_H
#include <string>
#include <map>
#include <Windows.h>
#include <gl/gl.h>
#include <QImage>
#include <QWidget>
#include <QtOpenGL/QGLWidget>
#include <Image.h>

class TextureManager
{
private:
    TextureManager();
    static TextureManager* myInstance;

public:
    ~TextureManager();
    static TextureManager* GetInst();

    Image *GetTexture(std::string name);

private:
    void load(std::string name);

    std::map<std::string, Image*>           myTextures;
    std::map<std::string, Image*>::iterator myIterator;
};

#endif // TEXTUREMANAGER_H
